package com.ev.asl.base;

import lombok.Data;

import java.io.Serializable;

/**
 * @author 姚家乐
 * @since 2021/7/7 13:50
 */
@Data
public class BaseParam implements Serializable {

    private Integer pageNo = 1;

    private Integer pageSize = 10;

    private Integer offset;

    private Integer limit;

    /**
     * 需要排序的字段
     */
    private String sort;

    /**
     * 升（asc）降(desc)序")
     */
    private String order;

    public BaseParam(){
        this.offset = (this.pageNo - 1) * this.pageSize;
        this.limit = this.pageSize;
    }
}
